package com.hzw.code.api

import com.hzw.code.annotation.BaseUrl
import com.hzw.code.annotation.NoEncrypt
import com.hzw.code.annotation.NoToken
import com.hzw.code.bean.Detail
import com.hzw.code.bean.GlobalBean
import com.hzw.code.net.Resource
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

/**
 *
 * @Author:         HuaZhongWei
 * @CreateDate:     2020/4/16 13:12
 *
 * @Description:
 *
 */

@BaseUrl(url = "http://129.28.130.64/api-feign/")
interface Api {


    @NoToken
    @GET("sso/platform/getPlatformTime")
    suspend fun getServerTime(): Resource<String>


    @NoEncrypt
    @POST("odc/doctor/center/configMessage")
    suspend fun getGlobalInfo(): Resource<GlobalBean>


    @POST("odc/patient/center/doctorPatientItem")
    suspend fun fetchPatientDetail(@Body body: RequestBody): Resource<Detail>

}